package com.cashmama.market.api.application.controller.home.response;

import com.cashmama.market.api.domain.vo.home.CreditHomeVO;
import com.cashmama.market.api.domain.vo.order.PermissionsInfo;
import com.cashmama.market.api.infras.handler.ResponseData;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2020-01-09 14:43
 **/
public class CreditHomeResponse implements ResponseData {

    private String maxAmount;
    private String jumpUrl;
    private boolean hasUnreadMessage;
    private boolean needALGO360Verify = false;
    private PermissionsInfo permissionsInfo;
    private String tips;
    private boolean enableJump;

    public CreditHomeResponse(CreditHomeVO creditHomeVO) {
        this.maxAmount = creditHomeVO.getMaxAmount();
        this.jumpUrl = creditHomeVO.getJumpUrl();
        this.hasUnreadMessage = creditHomeVO.isHasUnreadMessage();
        this.needALGO360Verify = creditHomeVO.isNeedALGO360Verify();
        this.permissionsInfo = creditHomeVO.getPermissionsInfo();
        this.tips = creditHomeVO.getTips();
        this.enableJump = creditHomeVO.isEnableJump();
    }


    public String getTips() {
        return tips;
    }

    public CreditHomeResponse setTips(String tips) {
        this.tips = tips;
        return this;
    }

    public boolean isEnableJump() {
        return enableJump;
    }

    public CreditHomeResponse setEnableJump(boolean enableJump) {
        this.enableJump = enableJump;
        return this;
    }

    public boolean isNeedALGO360Verify() {
        return needALGO360Verify;
    }

    public CreditHomeResponse setNeedALGO360Verify(boolean needALGO360Verify) {
        this.needALGO360Verify = needALGO360Verify;
        return this;
    }

    public PermissionsInfo getPermissionsInfo() {
        return permissionsInfo;
    }

    public CreditHomeResponse setPermissionsInfo(PermissionsInfo permissionsInfo) {
        this.permissionsInfo = permissionsInfo;
        return this;
    }

    public String getMaxAmount() {
        return maxAmount;
    }

    public CreditHomeResponse setMaxAmount(String maxAmount) {
        this.maxAmount = maxAmount;
        return this;
    }

    public String getJumpUrl() {
        return jumpUrl;
    }

    public CreditHomeResponse setJumpUrl(String jumpUrl) {
        this.jumpUrl = jumpUrl;
        return this;
    }

    public boolean isHasUnreadMessage() {
        return hasUnreadMessage;
    }

    public CreditHomeResponse setHasUnreadMessage(boolean hasUnreadMessage) {
        this.hasUnreadMessage = hasUnreadMessage;
        return this;
    }
}
